package Utility.Utility;

import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import Utility.Utility.MyURL;;

@XmlRootElement(name="config")
public class DataFeed {
	
	
	float versionId;
	 
	String title="Window title";
	 
	String message="Hello World!";
	 
	int width=320;
	 
	int height=240;
		
	String bg="ffffff";
	 
	  // one of the best things in JAXB is the ability to map entire
	  // class hierarchies and collections of data
	  // in this case each <url> element will be added to this list
	  // the actual MyURL class is defined in its own tab in the Processing PDE
	List<MyURL> urls=new ArrayList<MyURL>();

	public float getVersionId() {
		return versionId;
	}

	@XmlAttribute(name="version")
	public void setVersionId(float versionId) {
		this.versionId = versionId;
	}

	public String getTitle() {
		return title;
	}

	@XmlElement
	public void setTitle(String title) {
		this.title = title;
	}

	public String getMessage() {
		return message;
	}

	@XmlElement
	public void setMessage(String message) {
		this.message = message;
	}

	public int getWidth() {
		return width;
	}

	@XmlElement
	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	@XmlElement
	public void setHeight(int height) {
		this.height = height;
	}

	public String getBg() {
		return bg;
	}

	@XmlElement
	public void setBg(String bg) {
		this.bg = bg;
	}

	public List<MyURL> getUrls() {
		return urls;
	}

	@XmlElement(name="url")
	public void setUrls(List<MyURL> urls) {
		this.urls = urls;
	}

	
}
